/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Trp_datosCriteria extends AbstractORMCriteria {
	public final IntegerExpression da_id_datos;
	public final IntegerExpression da_edad;
	public final IntegerExpression da_peso;
	public final IntegerExpression da_estatura;
	public final IntegerExpression da_cuello;
	public final IntegerExpression da_cintura;
	public final IntegerExpression cadera;
	public final DoubleExpression da_masa_cor;
	public final DoubleExpression da_porcen_grasa;
	
	public Trp_datosCriteria(Criteria criteria) {
		super(criteria);
		da_id_datos = new IntegerExpression("da_id_datos", this);
		da_edad = new IntegerExpression("da_edad", this);
		da_peso = new IntegerExpression("da_peso", this);
		da_estatura = new IntegerExpression("da_estatura", this);
		da_cuello = new IntegerExpression("da_cuello", this);
		da_cintura = new IntegerExpression("da_cintura", this);
		cadera = new IntegerExpression("cadera", this);
		da_masa_cor = new DoubleExpression("da_masa_cor", this);
		da_porcen_grasa = new DoubleExpression("da_porcen_grasa", this);
	}
	
	public Trp_datosCriteria(PersistentSession session) {
		this(session.createCriteria(Trp_datos.class));
	}
	
	public Trp_datosCriteria() throws PersistentException {
		this(orm.Basededatosv5PersistentManager.instance().getSession());
	}
	
	public Trp_alumnoCriteria createAlumno_id_rutCriteria() {
		return new Trp_alumnoCriteria(createCriteria("alumno_id_rut"));
	}
	
	public Trp_datos uniqueTrp_datos() {
		return (Trp_datos) super.uniqueResult();
	}
	
	public Trp_datos[] listTrp_datos() {
		java.util.List list = super.list();
		return (Trp_datos[]) list.toArray(new Trp_datos[list.size()]);
	}
}

